<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{zmsbForm.bundleName}"/>
    <head>
        <title>#{text['zmsbDetail.title']}</title>
        <meta name="heading" content="#{text['zmsbDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="zmsbForm">

<h:form id="zmsbForm" onsubmit="return validateZmsbForm(this)">
 <h:inputHidden value="#{zmsbForm.zmsb.id}" id="id"/>
 <h:inputHidden value="#{zmsbForm.zmsb.version}" id="version"/>
    <h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{zmsbForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty zmsbForm.zmsb.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{zmsbForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Zmsb')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
    </h:panelGroup>
<h:panelGrid columns="6">
    <h:outputLabel styleClass="desc" for="mc" value="#{text['zmsb.mc']}"/>
    <t:message for="mc" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="mc" value="#{zmsbForm.zmsb.mc}" required="true" maxlength="50">
        <v:commonsValidator type="required" arg="#{text['zmsb.mc']}"/>
    </h:inputText>
    <h:outputLabel styleClass="desc" for="rdsj" value="#{text['zmsb.rdsj']}"/>
    <t:message for="rdsj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="rdsj" value="#{zmsbForm.zmsb.rdsj}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="xh" value="#{text['zmsb.xh']}"/>
    <t:message for="xh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="xh" value="#{zmsbForm.zmsb.xh}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="yxq" value="#{text['zmsb.yxq']}"/>
    <t:message for="yxq" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="yxq" value="#{zmsbForm.zmsb.yxq}" required="false" maxlength="50">
    </h:inputText>
	
	<!--
    <h:outputLabel styleClass="desc" for="id" value="#{text['zmsb.id']}"/>
    <h:inputText styleClass="text medium" id="id" value="#{zmsbForm.zmsb.id}" required="true">
        <v:commonsValidator type="required" arg="#{text['zmsb.id']}"/>
    </h:inputText>
    <t:message for="id" styleClass="fieldError"/>
    <h:selectOneMenu value="#{zmsbForm.zmsb.jbqk}" id="jbqk" required="false" styleClass="select">
        <f:selectItems value="#{zmsbForm.zmsb.jbqk}"/>
    </h:selectOneMenu> 
    <h:outputLabel styleClass="desc" for="operation" value="#{text['zmsb.operation']}"/>
    <t:message for="operation" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="operation" value="#{zmsbForm.zmsb.operation}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="optdate" value="#{text['zmsb.optdate']}"/>
    <t:message for="optdate" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="optdate" value="#{zmsbForm.zmsb.optdate}" required="false" maxlength="23">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="username" value="#{text['zmsb.username']}"/>
    <t:message for="username" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="username" value="#{zmsbForm.zmsb.username}" required="false" maxlength="50">
    </h:inputText>
	 -->
    <h:outputText/><h:outputText/>
</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateZmsbForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('zmsbForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
